//第二层


//获取店铺
const { Add3 , get3 ,Put3 ,Del3 , getApplicationShop , agreeAndRefuse} = require('../dao/shopDao')

module.exports.Add2 = async (data)=>{
   return await Add3(data);
}

//获取店铺
module.exports.get2 = async ()=>{
   return await get3();
}

//修改店铺
module.exports.Put2 = async (data)=>{
   // return await Put3(data);
   const result =  await Put3(data);
   if(result.ok == 1){
       return true;
   }else{
       return false;
   }
}

//获取店铺
module.exports.Del2 = async (data)=>{
   return await Del3(data);
}

// 获取申请店铺
module.exports.getApplicationShop=async function(data){
   return await getApplicationShop(data);
}
// 同意或拒绝
module.exports.agreeAndRefuse = async function(data){
   return await agreeAndRefuse(data);
}